package project.dade.cn.bst.adapter.base;

import android.support.v7.widget.RecyclerView;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

import cn.bingoogolapple.androidcommon.adapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.androidcommon.adapter.BGAViewHolderHelper;
import project.dade.cn.bst.R;
import project.dade.cn.bst.model.OrderDatailModel;

/**
 * Created by vain zhou on 2016/6/27.
 */
public class WashCarPhotoAdapter extends BGARecyclerViewAdapter<OrderDatailModel.DataBean.OrderFeedBackBean.ImagesBean> {

    public WashCarPhotoAdapter(RecyclerView recyclerView) {
        super(recyclerView,R.layout.washcar_item);
    }
    @Override
    protected void fillData(BGAViewHolderHelper helper, int postion, OrderDatailModel.DataBean.OrderFeedBackBean.ImagesBean model) {
        ImageView avatorIv =helper.getView(R.id.hotRL3Icon);
        Glide.with(mContext).load(model.getImage()).placeholder(R.drawable.image_loader_small).error(R.drawable.image_loader_small).into(avatorIv);

    }
}
